#ifndef TITLEBUTTON_H
#define TITLEBUTTON_H
#include <QPushButton>

class TitleButton : public QPushButton
{
    Q_OBJECT

public:
    explicit TitleButton(QWidget* parent = nullptr) : TitleButton(QIcon(), QString(""), parent) { }
    explicit TitleButton(const QString& text, QWidget* parent = nullptr)
        : TitleButton(QIcon(), text, parent)
    {
    }
    TitleButton(const QIcon& icon, const QString& text, QWidget* parent = nullptr)
        : QPushButton(icon, text, parent)
    {
        setFlat(true);
        setCheckable(true);
        setChecked(true);
    }
    ~TitleButton() { }
};

#endif // TITLEBUTTON_H
